package com.bdzl.admin.service.data.impl;

import com.bdzl.admin.dao.data.UserInfoDao;
import com.bdzl.admin.service.data.UserInfoService;
import com.bdzl.pub.entity.data.UserInfoDO;
import com.bdzl.pub.vo.data.UserInfoVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service
public class UserInfoServiceImpl implements UserInfoService {
	@Autowired
	private UserInfoDao userInfoDao;

	@Override
	public UserInfoDO get(Integer conId){
		return userInfoDao.get(conId);
	}

	@Override
	public List<UserInfoVO> list(Map<String, Object> map){
		return userInfoDao.list(map);
	}

	@Override
	public List<UserInfoDO> customerList(Map<String, Object> map){
		return userInfoDao.customerList(map);
	}

	@Override
	public int customerListCount(Map<String, Object> map){
		return userInfoDao.customerListCount(map);
	}

	@Override
	public int count(Map<String, Object> map){
		return userInfoDao.count(map);
	}

	@Override
	public int save(UserInfoDO userInfo){
		return userInfoDao.save(userInfo);
	}

	@Override
	public int update(UserInfoDO userInfo){
		return userInfoDao.update(userInfo);
	}

	@Override
	public int remove(Integer conId){
		return userInfoDao.remove(conId);
	}

	@Override
	public int batchRemove(Integer[] conIds){
		return userInfoDao.batchRemove(conIds);
	}

	@Override
	public List<UserInfoVO> getGuarantor(Integer conId, String odrNo) {
		return userInfoDao.getGuarantor(conId,odrNo);
	}

	@Override
	public UserInfoDO getSpouse(String conCardid) {
		return userInfoDao.getSpouse(conCardid);
	}

	/**
	 * 根据角色获取所有的用户
	 */
	@Override
	public List<UserInfoDO> getUserInfoByRele(Integer roleId ){
		return userInfoDao.getUserInfoByRele(roleId);
	}



}
